package com.main.ssm_builder.springAspect;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
	public static void main(String[] args) {
		 ApplicationContext ac = new ClassPathXmlApplicationContext("com/org/javabody/ssm_builder/applicationContext.xml");
		 Person per = (Person)ac.getBean("a");
		 boolean flag = per.eat();
		 System.out.println(flag);
		 Duck duck = (Duck)ac.getBean("b");
		 flag = duck.fly();
		 System.out.println(flag);
		 flag = duck.swim();
		 System.out.println(flag);
	}
}
